//
//  TreeEntity.h
//  SpaceViking
//
//  Created by gnt on 12/13/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CommonProtocols.h"

typedef enum
{
	TreeType0 = 0,
	TreeType1,
	TreeType2,
    TreeType3,
    StoneType1,
    StoneType2,
	
	TreeType_MAX,
} TreeTypes;

@interface TreeEntity : CCSprite {
    TreeTypes type;
    float currentZ;
    int currentZMapIndex;
    float unshiftX;
    float unshiftY;
    Turn existedTurn;
}
@property (readwrite) float currentZ;
@property (readwrite) int currentZMapIndex;
@property (readwrite) float unshiftX;
@property (readwrite) float unshiftY;
@property (readwrite) Turn existedTurn;

+(id) treeWithType:(TreeTypes)treeType;

+(int) getSpawnFrequencyForTreeType:(TreeTypes)treeType;

-(void) spawn;
@end